/** 剔除columns非原始类型的字段 */
export default function omitNotColumnable(columns: any[]) {
  return columns.map((v: any) => {
    const obj: any = { ...v }
    for (const key in obj) {
      if (typeof obj[key] === 'object') {
        delete obj[key]
      }
    }
    return obj
  })
}
